// const path = require("path");
// const resolve = dir => path.join(__dirname, dir);
module.exports = {
	configureWebpack: {
		resolve: {
			alias: {
				"assets": "@/assets",
				"components": "@/components",
				"views": "@/views"
			}
		}
	},
	devServer: {
		port: 8081,
		proxy: {
			"/teamwork/": {
				target: "http://localhost:8080",
				ws: true,
				changeOrigin: true,
				pathRewrite: {
					"^/teamwork": "/teamwork"
				}
			}
		}
		// proxy: "http://localhost:8080"
	},
  /*chainWebpack: config => {
    // 路径别名配置
    config.resolve.alias
      .set("@", resolve("src"))
      .set("assets", resolve("src/assets"))
      .set("components", resolve("src/components"))
			.set("views", resolve("src/views"))
  }*/
}
